package danweipaixu;

import java.util.Comparator;

class EmployeeComparator implements Comparator<Employee> { 
    public int compare(Employee o1, Employee o2) { 
            if (o1.getBirthday().getTime() > o2.getBirthday().getTime()) { 
                  return 1; 
           } else if (o1.getBirthday().getTime() < o2.getBirthday().getTime()) { 
              return -1; 
          } else { 
                return 0; 
         } 
  } 
}
